package cn.kogee.org.service;

import cn.kogee.basic.dto.ShopDto;
import cn.kogee.basic.service.IBaseService;
import cn.kogee.org.domain.Shop;
import cn.kogee.org.domain.ShopAuditLog;

import javax.mail.MessagingException;
import java.util.List;

/**
 * 业务接口：部门
 */
public interface IShopService extends IBaseService<Shop> {
    /**店铺入驻
     *
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 驳回接口
     * @param shopAuditLog
     */
    void auditReject(ShopAuditLog shopAuditLog) throws MessagingException;

    /**
     * 待激活接口接口
     * @param shopAuditLog
     */
    void auditPass(ShopAuditLog shopAuditLog) throws MessagingException;

    /**
     * 激活方法
     * @param shopId
     * @return
     */
    void active(Long shopId);

    /**
     * 批量新增
     * @param shops
     */
    void saves(List<Shop> shops);

    /**
     * 报表
     * @return
     */
    List<ShopDto> echartsData();
}
